package com.design.pattern.designPrinciples.simpleSegregation.method;

/**
 * create by yufeng on 2021/7/3 12:29
 */
public class Method {

    public void updateUserInfo(String userCode, String userName, boolean ifUpdateName) {
        if (ifUpdateName) {
            userName = "xxx";
        } else {
            userCode = "code";
        }
    }

    public void updateUserCode(String userCode) {
        userCode = "code";
    }

    public void updateUserName(String userName) {
        userName = "xxx";
    }
}
